package communication;

import org.jgroups.Address;
import org.jgroups.util.Rsp;

public class Response {
	
	private Rsp<ParameterizedMessage> rsp;

	public Response(Rsp<ParameterizedMessage> rsp) {
		this.rsp = rsp;
	}
	
	public Address getSender() {
		return rsp.getSender();
	}
	
	public ParameterizedMessage getMessage() {
		return rsp.getValue();
	}
	
	
	@Override
	public String toString() {
		return rsp.toString();
	}
	
}
